package com.chagee.channel.server.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author yuzhaoyang
 * @desc
 * @date 2020-09-27 20:34
 */
@Getter
@AllArgsConstructor
public enum ErrorCodeEnum {

	INTERNAL_SERVER_ERROR("10001", "系统错误"),
	ILLEGAL_ARGUMENT("10002", "参数错误"),
	MISSING_ARGUMENT("10003", "缺少参数"),
	BUSINESS_EXCEPTION("10004", "业务错误"),
	MULTIPART_TOO_LARGE("10005", "文件太大"),
	ILLEGAL_STATE("10006", "非法状态"),
	ILLEGAL_ACCESS("10007", "非法访问,没有认证"),
	UNAUTHORIZED("10008", "权限不足"),
	METHOD_NOT_ALLOWED("10009", "不支持的方法"),
	METHOD_NOT_FOUND("10010", "请求API不存在"),
	ACCESS_NOT_ALLOWED("10011", "非法请求"),
	MEDIA_TYPE_NOT_ALLOWED("10012", "不支持的内容类型"),
	RPC_SERVICE_ERROR("10013", "远程服务异常"),
	REPEATED_REQUEST_ERROR("10014", "请勿重复请求"),
	IDCARD_OCR_ERROR("10015", "请重新上传或拍摄清晰的证件照片")
	;

	private final String value;
	private final String message;

}
